<template>
	<view class="container">
		<view class="title" v-html="info.title">
		</view>
		<view class="middle_one">
			<view class="left">
				发布日期：{{info.updateDate}}
			</view>
			<view class="right">
				访问次数：{{info.hotpots || 0}}
			</view>
		</view>
		<view class="middle_two" v-html="info.summary">
		</view>
		<view class="middle_three">
			<view>
				作者：{{info.author ? info.author : ""}}
			</view>
			<view>
				发生地点：{{info.eventPlace ? info.eventPlace : ""}}
			</view>
			<view>
				内容来源：{{info.website ? info.website : ""}}
			</view>
		</view>
		<view class="middle_four">
			<view class="item">访问地址：</view>
			<view class="item color" @click="goopen(info.url)">{{info.url}}</view>
		</view>
	</view>

</template>

<script>
	export default {
		data() {
			return {
				info: {

				}
			}
		},
		components: {},
		onReady() {},
		// 下拉刷新，获取最新的数据
		onPullDownRefresh() {

		},
		// 上拉刷新，获取历史数据
		onReachBottom() {

		},
		methods: {
			goopen(e) {
				// #ifdef APP-PLUS
				plus.runtime.openURL(e)
				return
				// #endif
				window.location.href = e
			}

		},
		onLoad(option) {
			let _this = this
			uni.getStorage({
				key: "shishiredian_data",
				success(res) {
					_this.info = res.data
					console.log("123", _this.info)

				}
			})

		},
	}
</script>

<style lang="scss" scoped>
	page {
		background-color: #fff;
	}

	* {
		box-sizing: border-box;
	}


	.container {
		padding: 34rpx 24rpx;

		.title {
			font-size: 34rpx;
			font-weight: bold;
			color: #0E1634;
			line-height: 40rpx;

			:deep(em) {
				color: red;
			}
		}

		.middle_one {
			width: 702rpx;
			height: 80rpx;
			background: #F0F7FF;
			line-height: 80rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 0rpx 20rpx;
			font-size: 26rpx;
			font-weight: 400;
			color: #3B95FF;
			margin-top: 20rpx;
		}

		.middle_two {
			font-size: 28rpx;
			font-weight: 400;
			color: #333333;
			margin-top: 40rpx;
			line-height: 49rpx;
		}

		.middle_three {
			margin-top: 40rpx;
			font-size: 28rpx;
			font-weight: 400;
			color: #6F727C;
			line-height: 49rpx;
		}

		.middle_four {
			margin-top: 20rpx;
			// background: #F5F5F5;
			// background: #B8B8B8;
			background-color: rgba(184, 184, 184, 0.2);
			font-size: 28rpx;
			padding: 34rpx 24rpx;

			.item {
				display: inline-block;
			}

			.color {
				display: inline-block;
				color: #3B95FF;
				// width: 518rpx;
				width: 500rpx;
				word-wrap: break-word;
				vertical-align: top;
			}
		}
	}
</style>